package com.smartleanx.module.hrm.controller.admin.employee.contract;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.time.LocalDateTime;

import static com.smartleanx.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;

@Schema(description = "管理后台 - 员工合同查询 Request VO")
@Data
@Builder
public class EmployeeContractRepVo {

    @Schema(description = "合同类型")
    private Integer contractType;

    @Schema(description = "合同期限")
    private Integer year;

    @Schema(description = "开始日期")
//    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDateTime startTime;

    @Schema(description = "结束日期")
    private LocalDateTime endTime;
}
